public class Test {

    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();

        myLinkedList.addLast(0);
        myLinkedList.addLast(0);
        myLinkedList.addLast(0);
        myLinkedList.addLast(3);
        myLinkedList.addLast(4);

        myLinkedList.display();

        //myLinkedList.addIndex(4,1);
        //myLinkedList.remove(4);
        myLinkedList.addIndex(1,3);
        myLinkedList.addIndex(2,4);
        myLinkedList.addIndex(2,2);
        myLinkedList.addIndex(5,4);

        myLinkedList.display();

        myLinkedList.removeAllKey(4);
        myLinkedList.display();

        myLinkedList.clear();
        myLinkedList.display();
    }
}
